package com.hzeport.bgs22emduty.inbound.api;

import com.hzeport.bgs22emduty.dto.ParamVo;
import com.hzeport.bgs22emduty.common.base.BaseResult;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
////import com.hzeport.bgs22emduty.entity.ParamDictionary;
import com.hzeport.bgs22emduty.service.ParamDictionaryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * ${comments}
 *
 * @author code generator
 * @date 2022-12-02 11:21:59
 */
@RestController
@AllArgsConstructor
@RequestMapping("/paramdictionary")
@Api(value = "paramdictionary", tags = "参数管理")
@Slf4j
public class ParamDictionaryController {

    private final ParamDictionaryService paramDictionaryService;

    /**
     * 分页查询
     * @param paramModule ${comments}
     * @return
     */
    @ApiOperation(value = "参数字典管理-获取下拉框", notes = "参数字典管理-获取下拉框")
    @GetMapping("/getParamList")
    public BaseResult<List<ParamVo>> GetParamList(@RequestParam("paramModule")  String paramModule){
        return paramDictionaryService.GetParamList(paramModule);
    }



}
